{% extends "base.html" %}

{% block head %}
<title>登录</title>
{% endblock %}

{% block body %}
<form action="/login" method="post">
    <ul>
        <li>用户名：<input type="text" name="username"/></li>
        <li>密码：<input type="password" name="passwd"/></li>
        <li><input type="submit" value="登录"/></li>
    </ul>
    {% if message != None %}
    {{ message }}
    {% endif %}
    {{ xsrf_form_html()|safe }}
</form>
{% endblock %}
